﻿using System;

namespace Glue.Converters
{
    internal class BoolStringConverter : GlueDefaultConverter<bool, String>
    {
        internal override string InternalMapTowardsRight(bool from)
        {
            return from.ToString();
        }

        internal override bool InternalMapTowardsLeft(string from)
        {
            return Convert.ToBoolean(from);
        }
    }
}
